package org.happycomp.radio.guice;

import org.happycomp.radio.StoreState;
import org.happycomp.radio.impl.StoreStatesImpl;
import org.happycomp.radio.scheduler.Scheduler;
import org.happycomp.radio.scheduler.impl.SchedulerImpl;

import com.google.inject.AbstractModule;
import com.google.inject.Scopes;


/**
 * Guice modul pro downloader
 * @author pavels
 */
public class RadioModule  extends AbstractModule {

	@Override
	protected void configure() {
		bind(Scheduler.class).to(SchedulerImpl.class).in(Scopes.SINGLETON);
		bind(StoreState.class).to(StoreStatesImpl.class).in(Scopes.SINGLETON);
	}
}
